package JdbcTest.Homework.books.services.Impl;

import JdbcTest.Homework.books.dao.BookDao;
import JdbcTest.Homework.books.dao.Impl.BookDaoImpl;
import JdbcTest.Homework.books.pojo.Books;
import JdbcTest.Homework.books.services.BookServices;

import java.util.ArrayList;


public class BookServicesImpl implements BookServices {
    private BookDao bookDao = new BookDaoImpl();
    @Override
    public ArrayList<Books> select() {
        ArrayList<Books> bookList = bookDao.select();
        return bookList;
    }

    @Override
    public boolean update(Books books) {
        boolean b = bookDao.update(books);
        return b;
    }
}
